@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400&family=Work+Sans:wght@400;500;600&display=swap");

:root {
  color-scheme: dark;
  --accent: #7c83ff;
  font-family: "Work Sans", sans-serif;
  background: #07070a;
  color: #f5f5f7;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] { display: none !important; }

/* Full-bleed background; all information stays in the card. */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  z-index: -2;
}
.background-shade {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 32%);
  pointer-events: none;
  z-index: -1;
}
.entry-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 10;
  background: #07070a;
  transition: opacity 0.4s, visibility 0.4s;
}
.entry-overlay.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.entry-button {
  width: 100%;
  height: 100%;
  border: 0;
  background: none;
  color: #fff;
  font: 14px "Roboto Mono", monospace;
  letter-spacing: 0.05em;
}
.entry-button .hover { display: none; }
@media (hover: hover) {
  .entry-button .hover { display: inline; }
  .entry-button .no-hover { display: none; }
}

/* One centered glass card, including navigation and the media footer. */
.page-shell {
  width: min(500px, 100%);
  padding: 20px 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 18px;
  background: rgb(12 12 16 / 72%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
}
.page-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}
.page-nav h2 { margin: 0; font-size: 11px; font-weight: 400; color: #b5b5c0; }
.page-nav .social-link { min-width: 26px; min-height: 26px; }
.page-nav .social-link i { font-size: 15px; color: #dadade; }
.profile { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.profile-avatar {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 18%);
  box-shadow: 0 4px 24px rgb(0 0 0 / 25%);
}
.profile h1 {
  max-width: 100%;
  margin: 2px 0 0;
  font-size: clamp(23px, 5vw, 29px);
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: anywhere;
  color: #fff;
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent);
}
.profile-mark { font-size: 11px; color: #a6a6b2; }
.bio {
  width: 100%;
  min-height: 39px;
  margin: 0;
  font: 12px/1.6 "Roboto Mono", monospace;
  color: #c7c7d0;
  overflow-wrap: anywhere;
}

/* Compact two-line footer: track info, then controls and a binary switch. */
.player {
  order: 10;
  width: 100%;
  display: grid;
  gap: 7px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 10%);
}
.player-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.song-title {
  min-width: 0;
  margin: 0;
  font-size: 10px;
  color: #c7c7d0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audio-time {
  flex-shrink: 0;
  margin: 0;
  font-size: 9px;
  color: #868692;
  font-variant-numeric: tabular-nums;
}
.player-controls { display: flex; align-items: center; gap: 3px; }
.control-button {
  min-width: 30px;
  height: 30px;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d4d4dc;
  font-size: 13px;
}
.control-button:hover { background: rgb(255 255 255 / 9%); color: #fff; }
.volume-control { display: flex; align-items: center; margin-left: 4px; }
.volume-control input {
  --volume-fill: 10%;
  appearance: none;
  -webkit-appearance: none;
  width: 58px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.volume-control input::-webkit-slider-runnable-track {
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(to right, #d4d4dc var(--volume-fill), #454550 var(--volume-fill));
}
.volume-control input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -3px;
  border: 0;
  border-radius: 50%;
  background: #d4d4dc;
}
.volume-control input::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: #454550;
}
.volume-control input::-moz-range-progress {
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: #d4d4dc;
}
.volume-control input::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #d4d4dc;
}
.mode-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-height: 30px;
  margin-left: auto;
  cursor: pointer;
  font-size: 10px;
  color: #a0a0ad;
}
.mode-control input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; opacity: 0; }
.switch-track {
  position: relative;
  width: 27px;
  height: 15px;
  border-radius: 20px;
  background: #4a4a55;
  transition: background 0.2s;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.mode-control input:checked + .switch-track { background: var(--accent); }
.mode-control input:checked + .switch-track::after { transform: translateX(12px); }
.mode-control input:focus-visible + .switch-track { outline: 2px solid #fff; outline-offset: 3px; }
#media-mode-label { width: 38px; text-align: left; }
.player-status { margin: 0; font-size: 11px; color: #ffc0c0; }

.social-links, .directory-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.social-links { margin-top: 2px; }
.social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e3e3e8;
  transition: transform 0.2s;
}
.social-link:hover { transform: translateY(-2px); color: #fff; }
.social-link img { width: 24px; height: 24px; object-fit: contain; }
.social-link img[src$="/roblox.png"] { filter: invert(1); }
.social-link i { font-size: 24px; }
.social-link::after {
  content: attr(data-hover-text);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  border-radius: 6px;
  padding: 6px 9px;
  background: #111116;
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.social-link:hover::after, .social-link:focus-visible::after { opacity: 1; }
.extra-links, .directory { width: 100%; display: grid; justify-items: center; gap: 10px; }
.extra-links { margin-top: 5px; }
.extra-links h2, .directory h2 { margin: 0; font-size: 12px; font-weight: 400; color: #a7a7b3; }
.directory { padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 8%); }
.directory-links { gap: 10px; }
.directory-links img { width: 36px; height: 36px; border-radius: 50%; }
.directory-note { margin: 0; font-size: 10px; color: #868692; }
.credits { line-height: 1.6; margin: 0; font-size: 10px; color: #9595a1; text-align: left; }
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 20;
  max-width: calc(100% - 40px);
  padding: 12px 18px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 10px;
  background: rgb(12 12 16 / 95%);
  font-size: 12px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 480px) {
  .page-shell { padding: 18px 20px 20px; gap: 18px; border-radius: 15px; }
  .profile-avatar { width: 76px; height: 76px; }
}
@media (max-width: 350px) {
  .page-shell { padding-inline: 16px; }
  .volume-control input { width: 42px; }
  .mode-control { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
